"""yst URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, include, re_path
from .views import login, register, user_info, modify_password

app_name = 'users'
urlpatterns = [
    path('login/', login.LoginView.as_view(), name='login'),
    path('logout/', login.LogoutView.as_view(), name='logout'),
    path('register/', register.RegisterView.as_view(), name='register'),
    path('user_info/', user_info.UserInfoView.as_view(), name='user-info'),
    path('modify_password', modify_password.ModifyPasswordView.as_view(), name='modify-password'),
    path('geetest/', login.pcgetcaptcha, name='geetest'),
    path('captcha/', register.CaptchaView.as_view(), name='captcha'),
    path('modify_user_info/', user_info.ModifyUserInfoView.as_view(), name='modify-user-info')
]
